package com.palrevo.data.dao;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author AAsha
 */
public class DaoRecord {

    private Map<String, Object> entriesByName = null;
	private ArrayList<Object> entriesByIndex = null;

    public DaoRecord() {
        super();
		entriesByName = new HashMap<String, Object>();
		entriesByIndex = new ArrayList<Object>();
    }

    public java.lang.Object getValue(int index) {
		return entriesByIndex.get(index);
    }
    
    public Object getValue(String name) {
		return entriesByName.get(name);
    }
    
    public void addValue(String columnName, Object value) {
		entriesByName.put(columnName,value);
		entriesByIndex.add(value);
    }
    
}